package com.sharemarking.wa.platform.dto.index;

import java.util.Date;

/**
 * @author dxy
 */
public class NewsListDto {
    private Integer id;
    private String pic;
    private String title;
    private Date publishTime;

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getPublishTime() {
        if (publishTime != null) {
            return publishTime.getTime();
        }
        return null;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
